package com.innoking.docsys.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2019/8/15.
 */

@FeignClient(value = "user-service")
public interface UserRestInterface {

    @RequestMapping(value = "/home", method = RequestMethod.POST)
    public String getInfo(@RequestBody  String data);


    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String test(@RequestParam("data")String data);

}
